etaProducer.RuntimeBusinessLogic.Rendering.Scripting.ErrorHandling.InterpreterException ----------------- Skript-Fehler: --------------- Cannot read property 'replace' of null --------------- Zeile 38, Spalte 15: - --------------- Datei: C:\Users\samso\AppData\Local\Zeta Producer 16\packaging\widgets\veranstaltungsuebersicht\calendar.html --------------- Quelltext: 001: function SE638756623440482632() {} 002: 003: 004: SE638756623440482632.prototype.executeScript = function(){ 005: // Start source file: 'C:\Users\samso\AppData\Local\Zeta Producer 16\packaging\widgets\veranstaltungsuebersicht\calendar.html'. 006: 007: 008: var selectext = system.htmlEncode(article.value("selecttext")); 009: var venuelabel = system.htmlEncode(article.value("venuelabel")); 010: var genrelabel = system.htmlEncode(article.value("genrelabel")); 011: var sortorder = article.value("sortorder", "asc"); 012: var articleText = article.value("Text"); 013: if ( articleText !== "" && articleText.indexOf("

") == -1 ){ 014: articleText = "

" + articleText + "

"; 015: } 016: var maxevents = article.value("maxevents", "0"); 017: 018: // polyfill for JSON.stringify() 019: // https://gist.github.com/uupaa/5562297 020: function _toJSONEscapedString(str) { // @arg String: 021: // @ret String: 022: // @inner: to JSON escaped string 023: if (typeof(str)==='undefined') str = ""; 024: if ( str == ""){ 025: return ""; 026: } 027: else{ 028: var JSON_ESCAPE = { 029: '\b': '\\b', // backspace U+0008 030: '\t': '\\t', // tab U+0009 031: '\n': '\\n', // line feed U+000A 032: '\f': '\\f', // form feed U+000C 033: '\r': '\\r', // carriage return U+000D 034: '"': '\\"', // quotation mark U+0022 035: '\\': '\\\\' // reverse solidus U+005C 036: }; 037: return str.replace(/(?:[\b\t\n\f\r\"]|\\)/g, function(_) { return JSON_ESCAPE[_]; }).replace(/(?:[\x00-\x1f])/g, function(_) { return "\\u00" + ("0" + _.charCodeAt(0).toString(16)).slice(-2); }); 038: } 039: } 040: 041: // polyfill for toISOString() to convert a JS Date to RFC 3339 042: function ISODateString(d){ 043: function pad(n){return n<10 ? '0'+n : n} 044: 045: return d.getUTCFullYear()+'-' 046: + pad(d.getUTCMonth()+1)+'-' 047: + pad(d.getUTCDate())+'T' 048: + pad(d.getUTCHours())+':' 049: + pad(d.getUTCMinutes())+':' 050: + pad(d.getUTCSeconds())+'Z' 051: } 052: 053: function isoDate(d){ 054: return d.substr(6,4) + "-" + d.substr(3,2) + "-" + d.substr(0,2) 055: } 056: 057: var numMonths = article.value("num-months", "3"); 058: if ( isNaN(parseInt(numMonths)) || parseInt(numMonths) == 0 ){ 059: numMonths = "3"; 060: } 061: 062: var textcolorfree = article.value("textcolorfree", "inherit"); 063: if ( textcolorfree == "transparent" ){ 064: textcolorfree = "inherit"; 065: } 066: var bgcolorfree = article.value("bgcolorfree", "transparent"); 067: var textcolorbooked = article.value("textcolorbooked", "inherit"); 068: if ( textcolorbooked == "transparent" || textcolorbooked == "" ){ 069: textcolorbooked = "inherit"; 070: } 071: var linkcolorbooked = article.value("linkcolorbooked", "inherit"); 072: if ( linkcolorbooked == "transparent" || linkcolorbooked == "" ){ 073: linkcolorbooked = "inherit"; 074: } 075: var bgcolorbooked = article.value("bgcolorbooked", "#E6E6E6"); 076: var labelbooked = article.value("labelbooked", "Veranstaltung"); 077: if ( labelbooked == "" ){ 078: labelbooked = "Veranstaltung"; 079: } 080: var labelfree = article.value("labelfree", "Spielfrei"); 081: if ( labelfree == "" ){ 082: labelfree = "Spielfrei"; 083: } 084: 085: var styleSel = '.eventCalendar.calendar#ec' + article.id; 086: var thisStyles = ''; 087: thisStyles += styleSel + ' .zpCalendarTableLegend span.legfree{background-color:' + bgcolorfree + '}\n'; 088: thisStyles += styleSel + ' .zpCalendarTableLegend span.legbooked{background-color:' + bgcolorbooked + '}\n'; 089: thisStyles += styleSel + ' td.available{color: ' + textcolorfree + '; background-color: ' + bgcolorfree + ';}\n' 090: thisStyles += styleSel + ' td.withevent{color: ' + textcolorbooked + '; background-color: ' + bgcolorbooked + ';}\n' 091: thisStyles += styleSel + ' .event.overlay:not(.below){color: ' + textcolorbooked + '; background-color: ' + bgcolorbooked + ';}\n' 092: if ( linkcolorbooked !== "" ){ 093: thisStyles += styleSel + ' td.withevent a{color: ' + linkcolorbooked + ';}\n' 094: thisStyles += styleSel + ' .event.overlay:not(.below) a, ' + styleSel + ' .event.overlay .name {color: ' + linkcolorbooked + '};\n' 095: } 096: 097: system.addHtmlHeadElement("\n" + thisStyles + "\n"); 098: 099: 100: 101: context.write("\r\n\r\n"); 102: 103: context.write( system.partial("article-begin.html") ); 104: 105: context.write("\r\n\t
\r\n\r\n\t\t"); 138: 139: context.write( system.partial("article-headline.html") ); 140: 141: context.write("\t\r\n\t\t"); 142: 143: context.write( articleText ); 144: 145: context.write("\r\n\t\t\r\n\t\t
\r\n\r\n\t\t"); 146: 147: if ( !article.value("hide_legend", false) ){ 148: 149: context.write("\r\n\t\t

\r\n\t\t\t = "); 154: 155: context.write( system.htmlEncode(labelfree) ); 156: 157: context.write(" = "); 158: 159: context.write( system.htmlEncode(labelbooked) ); 160: 161: context.write("\r\n\t\t

\r\n\t\t"); 162: 163: } 164: 165: context.write("\r\n\t\t
\r\n\t\t\t

\r\n\t\t\t

\r\n\t\t\t\t\t
\r\n\t\t\t\t\t"); 166: 167: context.write( venuelabel ); 168: 169: context.write(":
\r\n\t\t\t\t\t"); 170: 171: context.write( genrelabel ); 172: 173: context.write(": \r\n\t\t\t

\r\n\t\r\n\t\t\t\"\"\r\n\t\t\t

\r\n\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\r\n\t\t\t✕ "); 174: 175: context.write(page.attribute("eventCalendar_datepicker_close_text", "Schließen")); 176: 177: context.write("\r\n\t\t
\r\n\r\n \r\n\r\n\t\t\r\n\t
\r\n"); 340: 341: context.write( system.partial("article-end.html") ); 342: 343: context.write("\r\n\r\n\r\n"); 344: // End source file: 'C:\Users\samso\AppData\Local\Zeta Producer 16\packaging\widgets\veranstaltungsuebersicht\calendar.html'. 345: }; 346: 347: /* Shortcuts. */ 348: article = context.article; 349: page = context.page; 350: projectFolder = context.projectFolder; 351: project = context.project; 352: system = context.system; 353: shop = context.shop; 354: 355: 356: new SE638756623440482632().executeScript(); ----------------- at ZetaProducer.JavaScriptEngineRunner.Implementations.JavaScriptEngineSwitcher.JsesEngineJintWrapper.ThrowHostException(Exception exception) in C:\P\zp-uk-zp-16.8-net-9-latest\ZetaProducerMain\Source\Core\JavaScriptEngineRunner\Implementations\JavaScriptEngineSwitcher\JsesEngineJintWrapper.cs:line 117 at ZetaProducer.JavaScriptEngineRunner.JsRunner.ThrowHostException(Exception exception) in C:\P\zp-uk-zp-16.8-net-9-latest\ZetaProducerMain\Source\Core\JavaScriptEngineRunner\JsRunner.cs:line 61 at ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Engine.RenderingInterpreterHelper.GuardEngineRun(IJsRunner engine, String scriptToExecute, RenderingContext renderingContext, String runString) in C:\P\zp-uk-zp-16.8-net-9-latest\ZetaProducerMain\Source\Core\RuntimeBusinessLogic\Rendering\Scripting\Engine\RenderingInterpreterHelper.cs:line 215 at ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Engine.RenderingInterpreter.doRun(RenderingContext renderingContext, String runString) in C:\P\zp-uk-zp-16.8-net-9-latest\ZetaProducerMain\Source\Core\RuntimeBusinessLogic\Rendering\Scripting\Engine\RenderingInterpreter.cs:line 52 at ZetaProducer.RuntimeBusinessLogic.Rendering.Macros.RenderingScriptingMacrosNew.Process(String textToProcess) in C:\P\zp-uk-zp-16.8-net-9-latest\ZetaProducerMain\Source\Core\RuntimeBusinessLogic\Rendering\Macros\RenderingScriptingMacrosNew.cs:line 17 at ZetaProducer.RuntimeBusinessLogic.Rendering.Core.RenderingDispatcher.doProcess(String textToProcess) in C:\P\zp-uk-zp-16.8-net-9-latest\ZetaProducerMain\Source\Core\RuntimeBusinessLogic\Rendering\Core\RenderingDispatcher.cs:line 42 at ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Dom.WebArticleScriptObject.render(Object makeAllRenderedUrlsAbsolute) in C:\P\zp-uk-zp-16.8-net-9-latest\ZetaProducerMain\Source\Core\RuntimeBusinessLogic\Rendering\Scripting\Dom\WebArticleScriptObject.cs:line 259 at InvokeStub_WebArticleScriptObject.render(Object, Span`1) at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) --- End of stack trace from previous location --- at Jint.Runtime.ExceptionHelper.ThrowMeaningfulException(Engine engine, TargetInvocationException exception) at Jint.Runtime.Interop.MethodInfoFunction.Call(JsValue thisObject, JsValue[] jsArguments) at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue(EvaluationContext context) at Jint.Runtime.Interpreter.Expressions.ExpressionCache.BuildArguments(EvaluationContext context, JsValue[] targetArray) at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) at Jint.Runtime.Interpreter.Statements.JintExpressionStatement.ExecuteInternal(EvaluationContext context) at Jint.Runtime.Interpreter.Statements.JintBlockStatement.ExecuteSingle(EvaluationContext context) at Jint.Runtime.Interpreter.Statements.JintBlockStatement.ExecuteBlock(EvaluationContext context) at Jint.Runtime.Interpreter.Statements.JintIfStatement.ExecuteInternal(EvaluationContext context) at Jint.Runtime.Interpreter.Statements.JintBlockStatement.ExecuteBlock(EvaluationContext context) at Jint.Runtime.Interpreter.Statements.JintForStatement.ForBodyEvaluation(EvaluationContext context) at Jint.Runtime.Interpreter.Statements.JintForStatement.ExecuteInternal(EvaluationContext context) at Jint.Runtime.Interpreter.Statements.JintBlockStatement.ExecuteBlock(EvaluationContext context) at Jint.Runtime.Interpreter.Statements.JintForStatement.ForBodyEvaluation(EvaluationContext context) at Jint.Runtime.Interpreter.Statements.JintForStatement.ExecuteInternal(EvaluationContext context) at Jint.Runtime.Interpreter.Statements.JintBlockStatement.ExecuteBlock(EvaluationContext context) at Jint.Runtime.Interpreter.Statements.JintForStatement.ForBodyEvaluation(EvaluationContext context) at Jint.Runtime.Interpreter.Statements.JintForStatement.ExecuteInternal(EvaluationContext context) at Jint.Runtime.Interpreter.Statements.JintBlockStatement.ExecuteBlock(EvaluationContext context) at Jint.Runtime.Interpreter.Statements.JintIfStatement.ExecuteInternal(EvaluationContext context) at Jint.Native.Function.ScriptFunction.Call(JsValue thisObject, JsValue[] arguments) at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) at Jint.Runtime.Interpreter.Statements.JintExpressionStatement.ExecuteInternal(EvaluationContext context) at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord, ParserOptions parserOptions) at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) at JavaScriptEngineSwitcher.Jint.JintJsEngine.InnerExecute(String code, String documentName) at ZetaProducer.JavaScriptEngineRunner.JsRunner.Execute(String script) in C:\P\zp-uk-zp-16.8-net-9-latest\ZetaProducerMain\Source\Core\JavaScriptEngineRunner\JsRunner.cs:line 45 InterpreterException { ErrorDetailsWithStack="Cannot read property \\'replace\\' of null", CompleteSourceTextWithHiddenRegions="001: function SE638756623440482632() {}\\r\\n002: \\r\\n003: \\r\\n004: SE638756623440482632.prototype.executeScript = function(){\\r\\n005: // Start source file: \\'C:\\Users\\samso\\AppData\\Local\\Zeta Producer 16\\packaging\\widgets\\veranstaltungsuebersicht\\calendar.html\\'.\\r\\n006: \\r\\n007: \\r\\n008: var selectext = system.htmlEncode(article.value(\\"selecttext\\"));\\r\\n009: var venuelabel = system.htmlEncode(article.value(\\"venuelabel\\"));\\r\\n010: var genrelabel = system.htmlEncode(article.value(\\"genrelabel\\"));\\r\\n011: var sortorder = article.value(\\"sortorder\\", \\"asc\\");\\r\\n012: var articleText = article.value(\\"Text\\");\\r\\n013: if ( articleText !== \\"\\" && articleText.indexOf(\\"

\\") == -1 ){\\r\\n014: \\tarticleText = \\"

\\" + articleText + \\"

\\";\\r\\n015: }\\r\\n016: var maxevents = article.value(\\"maxevents\\", \\"0\\");\\r\\n017: \\r\\n018: // polyfill for JSON.stringify()\\r\\n019: // https://gist.github.com/uupaa/5562297\\r\\n020: function _toJSONEscapedString(str) { // @arg String:\\r\\n021: // @ret String:\\r\\n022: // @inner: to JSON escaped string\\r\\n023: \\tif (typeof(str)===\\'undefined\\') str = \\"\\";\\r\\n024: \\tif ( str == \\"\\"){\\r\\n025: \\t\\treturn \\"\\";\\r\\n026: \\t}\\r\\n027: \\telse{\\r\\n028: \\t\\tvar JSON_ESCAPE = {\\r\\n029: \\t\\t\\t\\'\\b\\': \\'\\\\b\\', // backspace U+0008\\r\\n030: \\t\\t\\t\\'\\t\\': \\'\\\\t\\', // tab U+0009\\r\\n031: \\t\\t\\t\\'\\n\\': \\'\\\\n\\', // line feed U+000A\\r\\n032: \\t\\t\\t\\'\\f\\': \\'\\\\f\\', // form feed U+000C\\r\\n033: \\t\\t\\t\\'\\r\\': \\'\\\\r\\', // carriage return U+000D\\r\\n034: \\t\\t\\t\\'\\"\\': \\'\\\\\\"\\', // quotation mark U+0022\\r\\n035: \\t\\t\\t\\'\\\\\\': \\'\\\\\\\\\\' // reverse solidus U+005C\\r\\n036: \\t\\t};\\r\\n037: \\t\\treturn str.replace(/(?:[\\b\\t\\n\\f\\r\\\\"]|\\\\)/g, function(_) { return JSON_ESCAPE[_]; }).replace(/(?:[\\x00-\\x1f])/g, function(_) { return \\"\\\\u00\\" + (\\"0\\" + _.charCodeAt(0).toString(16)).slice(-2); });\\r\\n038: }\\r\\n039: }\\r\\n040: \\r\\n041: // polyfill for toISOString() to convert a JS Date to RFC 3339 \\r\\n042: function ISODateString(d){\\r\\n043: \\tfunction pad(n){return n<10 ? \\'0\\'+n : n}\\r\\n044: \\t\\r\\n045: \\treturn d.getUTCFullYear()+\\'-\\'\\r\\n046: + pad(d.getUTCMonth()+1)+\\'-\\'\\r\\n047: + pad(d.getUTCDate())+\\'T\\'\\r\\n048: + pad(d.getUTCHours())+\\':\\'\\r\\n049: + pad(d.getUTCMinutes())+\\':\\'\\r\\n050: + pad(d.getUTCSeconds())+\\'Z\\'\\r\\n051: }\\r\\n052: \\r\\n053: function isoDate(d){\\r\\n054: \\treturn d.substr(6,4) + \\"-\\" + d.substr(3,2) + \\"-\\" + d.substr(0,2)\\r\\n055: }\\r\\n056: \\r\\n057: var numMonths = article.value(\\"num-months\\", \\"3\\");\\r\\n058: if ( isNaN(parseInt(numMonths)) || parseInt(numMonths) == 0 ){\\r\\n059: \\tnumMonths = \\"3\\";\\r\\n060: }\\r\\n061: \\r\\n062: var textcolorfree = article.value(\\"textcolorfree\\", \\"inherit\\");\\r\\n063: if ( textcolorfree == \\"transparent\\" ){\\r\\n064: \\ttextcolorfree = \\"inherit\\";\\r\\n065: }\\r\\n066: var bgcolorfree = article.value(\\"bgcolorfree\\", \\"transparent\\");\\r\\n067: var textcolorbooked = article.value(\\"textcolorbooked\\", \\"inherit\\");\\r\\n068: if ( textcolorbooked == \\"transparent\\" || textcolorbooked == \\"\\" ){\\r\\n069: \\ttextcolorbooked = \\"inherit\\";\\r\\n070: }\\r\\n071: var linkcolorbooked = article.value(\\"linkcolorbooked\\", \\"inherit\\");\\r\\n072: if ( linkcolorbooked == \\"transparent\\" || linkcolorbooked == \\"\\" ){\\r\\n073: \\tlinkcolorbooked = \\"inherit\\";\\r\\n074: }\\r\\n075: var bgcolorbooked = article.value(\\"bgcolorbooked\\", \\"#E6E6E6\\");\\r\\n076: var labelbooked = article.value(\\"labelbooked\\", \\"Veranstaltung\\");\\r\\n077: if ( labelbooked == \\"\\" ){\\r\\n078: \\tlabelbooked = \\"Veranstaltung\\";\\r\\n079: }\\r\\n080: var labelfree = article.value(\\"labelfree\\", \\"Spielfrei\\");\\r\\n081: if ( labelfree == \\"\\" ){\\r\\n082: \\tlabelfree = \\"Spielfrei\\";\\r\\n083: }\\r\\n084: \\r\\n085: var styleSel = \\'.eventCalendar.calendar#ec\\' + article.id;\\r\\n086: var thisStyles = \\'\\';\\r\\n087: thisStyles += styleSel + \\' .zpCalendarTableLegend span.legfree{background-color:\\' + bgcolorfree + \\'}\\n\\';\\r\\n088: thisStyles += styleSel + \\' .zpCalendarTableLegend span.legbooked{background-color:\\' + bgcolorbooked + \\'}\\n\\';\\r\\n089: thisStyles += styleSel + \\' td.available{color: \\' + textcolorfree + \\'; background-color: \\' + bgcolorfree + \\';}\\n\\'\\r\\n090: thisStyles += styleSel + \\' td.withevent{color: \\' + textcolorbooked + \\'; background-color: \\' + bgcolorbooked + \\';}\\n\\'\\r\\n091: thisStyles += styleSel + \\' .event.overlay:not(.below){color: \\' + textcolorbooked + \\'; background-color: \\' + bgcolorbooked + \\';}\\n\\'\\r\\n092: if ( linkcolorbooked !== \\"\\" ){\\r\\n093: \\tthisStyles += styleSel + \\' td.withevent a{color: \\' + linkcolorbooked + \\';}\\n\\'\\r\\n094: \\tthisStyles += styleSel + \\' .event.overlay:not(.below) a, \\' + styleSel + \\' .event.overlay .name {color: \\' + linkcolorbooked + \\'};\\n\\'\\r\\n095: }\\r\\n096: \\r\\n097: system.addHtmlHeadElement(\\"\\n\\" + thisStyles + \\"\\n\\");\\r\\n098: \\r\\n099: \\r\\n100: \\r\\n101: context.write(\\"\\r\\n\\r\\n\\");\\r\\n102: \\r\\n103: context.write( system.partial(\\"article-begin.html\\") );\\r\\n104: \\r\\n105: context.write(\\"\\r\\n\\t
\\r\\n\\r\\n\\t\\t\\");\\r\\n138: \\r\\n139: context.write( system.partial(\\"article-headline.html\\") );\\r\\n140: \\r\\n141: context.write(\\"\\t\\r\\n\\t\\t\\");\\r\\n142: \\r\\n143: context.write( articleText );\\r\\n144: \\r\\n145: context.write(\\"\\r\\n\\t\\t\\r\\n\\t\\t
\\r\\n\\r\\n\\t\\t\\");\\r\\n146: \\r\\n147: if ( !article.value(\\"hide_legend\\", false) ){ \\r\\n148: \\r\\n149: context.write(\\"\\r\\n\\t\\t

\\r\\n\\t\\t\\t = \\");\\r\\n154: \\r\\n155: context.write( system.htmlEncode(labelfree) );\\r\\n156: \\r\\n157: context.write(\\" = \\");\\r\\n158: \\r\\n159: context.write( system.htmlEncode(labelbooked) );\\r\\n160: \\r\\n161: context.write(\\"\\r\\n\\t\\t

\\r\\n\\t\\t\\");\\r\\n162: \\r\\n163: } \\r\\n164: \\r\\n165: context.write(\\"\\r\\n\\t\\t
\\r\\n\\t\\t\\t

\\r\\n\\t\\t\\t

\\r\\n\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t\\");\\r\\n166: \\r\\n167: context.write( venuelabel );\\r\\n168: \\r\\n169: context.write(\\":
\\r\\n\\t\\t\\t\\t\\t\\");\\r\\n170: \\r\\n171: context.write( genrelabel );\\r\\n172: \\r\\n173: context.write(\\": \\r\\n\\t\\t\\t

\\r\\n\\t\\r\\n\\t\\t\\t\\\\"\\\\"\\r\\n\\t\\t\\t

\\r\\n\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t✕ \\");\\r\\n174: \\r\\n175: context.write(page.attribute(\\"eventCalendar_datepicker_close_text\\", \\"Schließen\\"));\\r\\n176: \\r\\n177: context.write(\\"\\r\\n\\t\\t
\\r\\n\\r\\n \\r\\n\\r\\n\\t\\t\\r\\n\\t
\\r\\n\\");\\r\\n340: \\r\\n341: context.write( system.partial(\\"article-end.html\\") );\\r\\n342: \\r\\n343: context.write(\\"\\r\\n\\r\\n\\r\\n\\");\\r\\n344: // End source file: \\'C:\\Users\\samso\\AppData\\Local\\Zeta Producer 16\\packaging\\widgets\\veranstaltungsuebersicht\\calendar.html\\'.\\r\\n345: };\\r\\n346: \\r\\n347: /* Shortcuts. */\\r\\n348: article = context.article;\\r\\n349: page = context.page;\\r\\n350: projectFolder = context.projectFolder;\\r\\n351: project = context.project;\\r\\n352: system = context.system;\\r\\n353: shop = context.shop;\\r\\n354: \\r\\n355: \\r\\n356: new SE638756623440482632().executeScript();\\r\\n", CompleteSourceText="001: function SE638756623440482632() {}\\r\\n002: \\r\\n003: \\r\\n004: SE638756623440482632.prototype.executeScript = function(){\\r\\n005: // Start source file: \\'C:\\Users\\samso\\AppData\\Local\\Zeta Producer 16\\packaging\\widgets\\veranstaltungsuebersicht\\calendar.html\\'.\\r\\n006: \\r\\n007: \\r\\n008: var selectext = system.htmlEncode(article.value(\\"selecttext\\"));\\r\\n009: var venuelabel = system.htmlEncode(article.value(\\"venuelabel\\"));\\r\\n010: var genrelabel = system.htmlEncode(article.value(\\"genrelabel\\"));\\r\\n011: var sortorder = article.value(\\"sortorder\\", \\"asc\\");\\r\\n012: var articleText = article.value(\\"Text\\");\\r\\n013: if ( articleText !== \\"\\" && articleText.indexOf(\\"

\\") == -1 ){\\r\\n014: \\tarticleText = \\"

\\" + articleText + \\"

\\";\\r\\n015: }\\r\\n016: var maxevents = article.value(\\"maxevents\\", \\"0\\");\\r\\n017: \\r\\n018: // polyfill for JSON.stringify()\\r\\n019: // https://gist.github.com/uupaa/5562297\\r\\n020: function _toJSONEscapedString(str) { // @arg String:\\r\\n021: // @ret String:\\r\\n022: // @inner: to JSON escaped string\\r\\n023: \\tif (typeof(str)===\\'undefined\\') str = \\"\\";\\r\\n024: \\tif ( str == \\"\\"){\\r\\n025: \\t\\treturn \\"\\";\\r\\n026: \\t}\\r\\n027: \\telse{\\r\\n028: \\t\\tvar JSON_ESCAPE = {\\r\\n029: \\t\\t\\t\\'\\b\\': \\'\\\\b\\', // backspace U+0008\\r\\n030: \\t\\t\\t\\'\\t\\': \\'\\\\t\\', // tab U+0009\\r\\n031: \\t\\t\\t\\'\\n\\': \\'\\\\n\\', // line feed U+000A\\r\\n032: \\t\\t\\t\\'\\f\\': \\'\\\\f\\', // form feed U+000C\\r\\n033: \\t\\t\\t\\'\\r\\': \\'\\\\r\\', // carriage return U+000D\\r\\n034: \\t\\t\\t\\'\\"\\': \\'\\\\\\"\\', // quotation mark U+0022\\r\\n035: \\t\\t\\t\\'\\\\\\': \\'\\\\\\\\\\' // reverse solidus U+005C\\r\\n036: \\t\\t};\\r\\n037: \\t\\treturn str.replace(/(?:[\\b\\t\\n\\f\\r\\\\"]|\\\\)/g, function(_) { return JSON_ESCAPE[_]; }).replace(/(?:[\\x00-\\x1f])/g, function(_) { return \\"\\\\u00\\" + (\\"0\\" + _.charCodeAt(0).toString(16)).slice(-2); });\\r\\n038: }\\r\\n039: }\\r\\n040: \\r\\n041: // polyfill for toISOString() to convert a JS Date to RFC 3339 \\r\\n042: function ISODateString(d){\\r\\n043: \\tfunction pad(n){return n<10 ? \\'0\\'+n : n}\\r\\n044: \\t\\r\\n045: \\treturn d.getUTCFullYear()+\\'-\\'\\r\\n046: + pad(d.getUTCMonth()+1)+\\'-\\'\\r\\n047: + pad(d.getUTCDate())+\\'T\\'\\r\\n048: + pad(d.getUTCHours())+\\':\\'\\r\\n049: + pad(d.getUTCMinutes())+\\':\\'\\r\\n050: + pad(d.getUTCSeconds())+\\'Z\\'\\r\\n051: }\\r\\n052: \\r\\n053: function isoDate(d){\\r\\n054: \\treturn d.substr(6,4) + \\"-\\" + d.substr(3,2) + \\"-\\" + d.substr(0,2)\\r\\n055: }\\r\\n056: \\r\\n057: var numMonths = article.value(\\"num-months\\", \\"3\\");\\r\\n058: if ( isNaN(parseInt(numMonths)) || parseInt(numMonths) == 0 ){\\r\\n059: \\tnumMonths = \\"3\\";\\r\\n060: }\\r\\n061: \\r\\n062: var textcolorfree = article.value(\\"textcolorfree\\", \\"inherit\\");\\r\\n063: if ( textcolorfree == \\"transparent\\" ){\\r\\n064: \\ttextcolorfree = \\"inherit\\";\\r\\n065: }\\r\\n066: var bgcolorfree = article.value(\\"bgcolorfree\\", \\"transparent\\");\\r\\n067: var textcolorbooked = article.value(\\"textcolorbooked\\", \\"inherit\\");\\r\\n068: if ( textcolorbooked == \\"transparent\\" || textcolorbooked == \\"\\" ){\\r\\n069: \\ttextcolorbooked = \\"inherit\\";\\r\\n070: }\\r\\n071: var linkcolorbooked = article.value(\\"linkcolorbooked\\", \\"inherit\\");\\r\\n072: if ( linkcolorbooked == \\"transparent\\" || linkcolorbooked == \\"\\" ){\\r\\n073: \\tlinkcolorbooked = \\"inherit\\";\\r\\n074: }\\r\\n075: var bgcolorbooked = article.value(\\"bgcolorbooked\\", \\"#E6E6E6\\");\\r\\n076: var labelbooked = article.value(\\"labelbooked\\", \\"Veranstaltung\\");\\r\\n077: if ( labelbooked == \\"\\" ){\\r\\n078: \\tlabelbooked = \\"Veranstaltung\\";\\r\\n079: }\\r\\n080: var labelfree = article.value(\\"labelfree\\", \\"Spielfrei\\");\\r\\n081: if ( labelfree == \\"\\" ){\\r\\n082: \\tlabelfree = \\"Spielfrei\\";\\r\\n083: }\\r\\n084: \\r\\n085: var styleSel = \\'.eventCalendar.calendar#ec\\' + article.id;\\r\\n086: var thisStyles = \\'\\';\\r\\n087: thisStyles += styleSel + \\' .zpCalendarTableLegend span.legfree{background-color:\\' + bgcolorfree + \\'}\\n\\';\\r\\n088: thisStyles += styleSel + \\' .zpCalendarTableLegend span.legbooked{background-color:\\' + bgcolorbooked + \\'}\\n\\';\\r\\n089: thisStyles += styleSel + \\' td.available{color: \\' + textcolorfree + \\'; background-color: \\' + bgcolorfree + \\';}\\n\\'\\r\\n090: thisStyles += styleSel + \\' td.withevent{color: \\' + textcolorbooked + \\'; background-color: \\' + bgcolorbooked + \\';}\\n\\'\\r\\n091: thisStyles += styleSel + \\' .event.overlay:not(.below){color: \\' + textcolorbooked + \\'; background-color: \\' + bgcolorbooked + \\';}\\n\\'\\r\\n092: if ( linkcolorbooked !== \\"\\" ){\\r\\n093: \\tthisStyles += styleSel + \\' td.withevent a{color: \\' + linkcolorbooked + \\';}\\n\\'\\r\\n094: \\tthisStyles += styleSel + \\' .event.overlay:not(.below) a, \\' + styleSel + \\' .event.overlay .name {color: \\' + linkcolorbooked + \\'};\\n\\'\\r\\n095: }\\r\\n096: \\r\\n097: system.addHtmlHeadElement(\\"\\n\\" + thisStyles + \\"\\n\\");\\r\\n098: \\r\\n099: \\r\\n100: \\r\\n101: context.write(\\"\\r\\n\\r\\n\\");\\r\\n102: \\r\\n103: context.write( system.partial(\\"article-begin.html\\") );\\r\\n104: \\r\\n105: context.write(\\"\\r\\n\\t
\\r\\n\\r\\n\\t\\t\\");\\r\\n138: \\r\\n139: context.write( system.partial(\\"article-headline.html\\") );\\r\\n140: \\r\\n141: context.write(\\"\\t\\r\\n\\t\\t\\");\\r\\n142: \\r\\n143: context.write( articleText );\\r\\n144: \\r\\n145: context.write(\\"\\r\\n\\t\\t\\r\\n\\t\\t
\\r\\n\\r\\n\\t\\t\\");\\r\\n146: \\r\\n147: if ( !article.value(\\"hide_legend\\", false) ){ \\r\\n148: \\r\\n149: context.write(\\"\\r\\n\\t\\t

\\r\\n\\t\\t\\t = \\");\\r\\n154: \\r\\n155: context.write( system.htmlEncode(labelfree) );\\r\\n156: \\r\\n157: context.write(\\" = \\");\\r\\n158: \\r\\n159: context.write( system.htmlEncode(labelbooked) );\\r\\n160: \\r\\n161: context.write(\\"\\r\\n\\t\\t

\\r\\n\\t\\t\\");\\r\\n162: \\r\\n163: } \\r\\n164: \\r\\n165: context.write(\\"\\r\\n\\t\\t
\\r\\n\\t\\t\\t

\\r\\n\\t\\t\\t

\\r\\n\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t\\");\\r\\n166: \\r\\n167: context.write( venuelabel );\\r\\n168: \\r\\n169: context.write(\\":
\\r\\n\\t\\t\\t\\t\\t\\");\\r\\n170: \\r\\n171: context.write( genrelabel );\\r\\n172: \\r\\n173: context.write(\\": \\r\\n\\t\\t\\t

\\r\\n\\t\\r\\n\\t\\t\\t\\\\"\\\\"\\r\\n\\t\\t\\t

\\r\\n\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t✕ \\");\\r\\n174: \\r\\n175: context.write(page.attribute(\\"eventCalendar_datepicker_close_text\\", \\"Schließen\\"));\\r\\n176: \\r\\n177: context.write(\\"\\r\\n\\t\\t
\\r\\n\\r\\n \\r\\n\\r\\n\\t\\t\\r\\n\\t
\\r\\n\\");\\r\\n340: \\r\\n341: context.write( system.partial(\\"article-end.html\\") );\\r\\n342: \\r\\n343: context.write(\\"\\r\\n\\r\\n\\r\\n\\");\\r\\n344: // End source file: \\'C:\\Users\\samso\\AppData\\Local\\Zeta Producer 16\\packaging\\widgets\\veranstaltungsuebersicht\\calendar.html\\'.\\r\\n345: };\\r\\n346: \\r\\n347: /* Shortcuts. */\\r\\n348: article = context.article;\\r\\n349: page = context.page;\\r\\n350: projectFolder = context.projectFolder;\\r\\n351: project = context.project;\\r\\n352: system = context.system;\\r\\n353: shop = context.shop;\\r\\n354: \\r\\n355: \\r\\n356: new SE638756623440482632().executeScript();", CompleteSourceLines=String[] { Length=356, LongLength=356, Rank=1, , IsReadOnly=False, IsFixedSize=True, IsSynchronized=False "001: function SE638756623440482632() {}", "002: ", "003: ", "004: SE638756623440482632.prototype.executeScript = function(){", "005: // Start source file: \\'C:\\Users\\samso\\AppData\\Local\\Zeta Producer 16\\packaging\\widgets\\veranstaltungsuebersicht\\calendar.html\\'.", "006: ", "007: ", "008: var selectext = system.htmlEncode(article.value(\\"selecttext\\"));", "009: var venuelabel = system.htmlEncode(article.value(\\"venuelabel\\"));", "010: var genrelabel = system.htmlEncode(article.value(\\"genrelabel\\"));", "011: var sortorder = article.value(\\"sortorder\\", \\"asc\\");", "012: var articleText = article.value(\\"Text\\");", "013: if ( articleText !== \\"\\" && articleText.indexOf(\\"

\\") == -1 ){", "014: \\tarticleText = \\"

\\" + articleText + \\"

\\";", "015: }", "016: var maxevents = article.value(\\"maxevents\\", \\"0\\");", "017: ", "018: // polyfill for JSON.stringify()", "019: // https://gist.github.com/uupaa/5562297", "020: function _toJSONEscapedString(str) { // @arg String:", "021: // @ret String:", "022: // @inner: to JSON escaped string", "023: \\tif (typeof(str)===\\'undefined\\') str = \\"\\";", "024: \\tif ( str == \\"\\"){", "025: \\t\\treturn \\"\\";", "026: \\t}", "027: \\telse{", "028: \\t\\tvar JSON_ESCAPE = {", "029: \\t\\t\\t\\'\\b\\': \\'\\\\b\\', // backspace U+0008", "030: \\t\\t\\t\\'\\t\\': \\'\\\\t\\', // tab U+0009", "031: \\t\\t\\t\\'\\n\\': \\'\\\\n\\', // line feed U+000A", "032: \\t\\t\\t\\'\\f\\': \\'\\\\f\\', // form feed U+000C", "033: \\t\\t\\t\\'\\r\\': \\'\\\\r\\', // carriage return U+000D", "034: \\t\\t\\t\\'\\"\\': \\'\\\\\\"\\', // quotation mark U+0022", "035: \\t\\t\\t\\'\\\\\\': \\'\\\\\\\\\\' // reverse solidus U+005C", "036: \\t\\t};", "037: \\t\\treturn str.replace(/(?:[\\b\\t\\n\\f\\r\\\\"]|\\\\)/g, function(_) { return JSON_ESCAPE[_]; }).replace(/(?:[\\x00-\\x1f])/g, function(_) { return \\"\\\\u00\\" + (\\"0\\" + _.charCodeAt(0).toString(16)).slice(-2); });", "038: }", "039: }", "040: ", "041: // polyfill for toISOString() to convert a JS Date to RFC 3339 ", "042: function ISODateString(d){", "043: \\tfunction pad(n){return n<10 ? \\'0\\'+n : n}", "044: \\t", "045: \\treturn d.getUTCFullYear()+\\'-\\'", "046: + pad(d.getUTCMonth()+1)+\\'-\\'", "047: + pad(d.getUTCDate())+\\'T\\'", "048: + pad(d.getUTCHours())+\\':\\'", "049: + pad(d.getUTCMinutes())+\\':\\'", "050: + pad(d.getUTCSeconds())+\\'Z\\'", "051: }", "052: ", "053: function isoDate(d){", "054: \\treturn d.substr(6,4) + \\"-\\" + d.substr(3,2) + \\"-\\" + d.substr(0,2)", "055: }", "056: ", "057: var numMonths = article.value(\\"num-months\\", \\"3\\");", "058: if ( isNaN(parseInt(numMonths)) || parseInt(numMonths) == 0 ){", "059: \\tnumMonths = \\"3\\";", "060: }", "061: ", "062: var textcolorfree = article.value(\\"textcolorfree\\", \\"inherit\\");", "063: if ( textcolorfree == \\"transparent\\" ){", "064: \\ttextcolorfree = \\"inherit\\";", "065: }", "066: var bgcolorfree = article.value(\\"bgcolorfree\\", \\"transparent\\");", "067: var textcolorbooked = article.value(\\"textcolorbooked\\", \\"inherit\\");", "068: if ( textcolorbooked == \\"transparent\\" || textcolorbooked == \\"\\" ){", "069: \\ttextcolorbooked = \\"inherit\\";", "070: }", "071: var linkcolorbooked = article.value(\\"linkcolorbooked\\", \\"inherit\\");", "072: if ( linkcolorbooked == \\"transparent\\" || linkcolorbooked == \\"\\" ){", "073: \\tlinkcolorbooked = \\"inherit\\";", "074: }", "075: var bgcolorbooked = article.value(\\"bgcolorbooked\\", \\"#E6E6E6\\");", "076: var labelbooked = article.value(\\"labelbooked\\", \\"Veranstaltung\\");", "077: if ( labelbooked == \\"\\" ){", "078: \\tlabelbooked = \\"Veranstaltung\\";", "079: }", "080: var labelfree = article.value(\\"labelfree\\", \\"Spielfrei\\");", "081: if ( labelfree == \\"\\" ){", "082: \\tlabelfree = \\"Spielfrei\\";", "083: }", "084: ", "085: var styleSel = \\'.eventCalendar.calendar#ec\\' + article.id;", "086: var thisStyles = \\'\\';", "087: thisStyles += styleSel + \\' .zpCalendarTableLegend span.legfree{background-color:\\' + bgcolorfree + \\'}\\n\\';", "088: thisStyles += styleSel + \\' .zpCalendarTableLegend span.legbooked{background-color:\\' + bgcolorbooked + \\'}\\n\\';", "089: thisStyles += styleSel + \\' td.available{color: \\' + textcolorfree + \\'; background-color: \\' + bgcolorfree + \\';}\\n\\'", "090: thisStyles += styleSel + \\' td.withevent{color: \\' + textcolorbooked + \\'; background-color: \\' + bgcolorbooked + \\';}\\n\\'", "091: thisStyles += styleSel + \\' .event.overlay:not(.below){color: \\' + textcolorbooked + \\'; background-color: \\' + bgcolorbooked + \\';}\\n\\'", "092: if ( linkcolorbooked !== \\"\\" ){", "093: \\tthisStyles += styleSel + \\' td.withevent a{color: \\' + linkcolorbooked + \\';}\\n\\'", "094: \\tthisStyles += styleSel + \\' .event.overlay:not(.below) a, \\' + styleSel + \\' .event.overlay .name {color: \\' + linkcolorbooked + \\'};\\n\\'", "095: }", "096: ", "097: system.addHtmlHeadElement(\\"\\n\\" + thisStyles + \\"\\n\\");", "098: ", "099: ", "100: ", "101: context.write(\\"\\r\\n\\r\\n\\");", "102: ", "103: context.write( system.partial(\\"article-begin.html\\") );", "104: ", "105: context.write(\\"\\r\\n\\t
\\r\\n\\r\\n\\t\\t\\");", "138: ", "139: context.write( system.partial(\\"article-headline.html\\") );", "140: ", "141: context.write(\\"\\t\\r\\n\\t\\t\\");", "142: ", "143: context.write( articleText );", "144: ", "145: context.write(\\"\\r\\n\\t\\t\\r\\n\\t\\t
\\r\\n\\r\\n\\t\\t\\");", "146: ", "147: if ( !article.value(\\"hide_legend\\", false) ){ ", "148: ", "149: context.write(\\"\\r\\n\\t\\t

\\r\\n\\t\\t\\t = \\");", "154: ", "155: context.write( system.htmlEncode(labelfree) );", "156: ", "157: context.write(\\" = \\");", "158: ", "159: context.write( system.htmlEncode(labelbooked) );", "160: ", "161: context.write(\\"\\r\\n\\t\\t

\\r\\n\\t\\t\\");", "162: ", "163: } ", "164: ", "165: context.write(\\"\\r\\n\\t\\t
\\r\\n\\t\\t\\t

\\r\\n\\t\\t\\t

\\r\\n\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t\\");", "166: ", "167: context.write( venuelabel );", "168: ", "169: context.write(\\":
\\r\\n\\t\\t\\t\\t\\t\\");", "170: ", "171: context.write( genrelabel );", "172: ", "173: context.write(\\": \\r\\n\\t\\t\\t

\\r\\n\\t\\r\\n\\t\\t\\t\\\\"\\\\"\\r\\n\\t\\t\\t

\\r\\n\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t✕ \\");", "174: ", "175: context.write(page.attribute(\\"eventCalendar_datepicker_close_text\\", \\"Schließen\\"));", "176: ", "177: context.write(\\"\\r\\n\\t\\t
\\r\\n\\r\\n \\r\\n\\r\\n\\t\\t\\r\\n\\t
\\r\\n\\");", "340: ", "341: context.write( system.partial(\\"article-end.html\\") );", "342: ", "343: context.write(\\"\\r\\n\\r\\n\\r\\n\\");", "344: // End source file: \\'C:\\Users\\samso\\AppData\\Local\\Zeta Producer 16\\packaging\\widgets\\veranstaltungsuebersicht\\calendar.html\\'.", "345: };", "346: ", "347: /* Shortcuts. */", "348: article = context.article;", "349: page = context.page;", "350: projectFolder = context.projectFolder;", "351: project = context.project;", "352: system = context.system;", "353: shop = context.shop;", "354: ", "355: ", "356: new SE638756623440482632().executeScript();" }, LineNumber=37, ColumnNumber=14, SourceLine="", Description="Cannot read property \\'replace\\' of null", SourceFilePath="C:\\Users\\samso\\AppData\\Local\\Zeta Producer 16\\packaging\\widgets\\veranstaltungsuebersicht\\calendar.html", WasCanceled=False, TargetSite=RuntimeMethodInfo: ThrowHostException, Message="TypeError: Cannot read property \\'replace\\' of null\\r\\n at _toJSONEscapedString (Script Document [21]:37:14)\\r\\n at Global code (.executeScript () Script Document [21]:275:16)\\r\\n at Global code (render Script Document [21]:356:1)\\r\\n at Global code (.executeScript () Script Document [20]:703:22)\\r\\n at Global code (partial Script Document [20]:767:1)\\r\\n at Global code (.executeScript () Script Document [19]:109:16)\\r\\n at Global code (partial Script Document [19]:180:1)\\r\\n at Global code (.executeScript () Script Document [4]:233:16)\\r\\n at Global code (Script Document [4]:348:1)", Data= [ ] , InnerException=JsRunnerException { Description="Cannot read property \\'replace\\' of null", LineNumber=37, ColumnNumber=14, SourceLine="", FullSourceCode="JavaScriptEngineSwitcher.Jint", WasCanceled=False, TargetSite=RuntimeMethodInfo: Execute, Message="TypeError: Cannot read property \\'replace\\' of null\\r\\n at _toJSONEscapedString (Script Document [21]:37:14)\\r\\n at Global code (.executeScript () Script Document [21]:275:16)\\r\\n at Global code (render Script Document [21]:356:1)\\r\\n at Global code (.executeScript () Script Document [20]:703:22)\\r\\n at Global code (partial Script Document [20]:767:1)\\r\\n at Global code (.executeScript () Script Document [19]:109:16)\\r\\n at Global code (partial Script Document [19]:180:1)\\r\\n at Global code (.executeScript () Script Document [4]:233:16)\\r\\n at Global code (Script Document [4]:348:1)", Data= [ ] , InnerException=JsRuntimeException { CallStack=" at _toJSONEscapedString (Script Document [21]:37:14)\\r\\n at Global code (.executeScript () Script Document [21]:275:16)\\r\\n at Global code (render Script Document [21]:356:1)\\r\\n at Global code (.executeScript () Script Document [20]:703:22)\\r\\n at Global code (partial Script Document [20]:767:1)\\r\\n at Global code (.executeScript () Script Document [19]:109:16)\\r\\n at Global code (partial Script Document [19]:180:1)\\r\\n at Global code (.executeScript () Script Document [4]:233:16)\\r\\n at Global code (Script Document [4]:348:1)", Type="TypeError", DocumentName="Script Document [21]", LineNumber=37, ColumnNumber=14, SourceFragment="", EngineName="JintJsEngine", EngineVersion="4.2.0", Category="Runtime error", Description="Cannot read property \\'replace\\' of null", TargetSite=RuntimeMethodInfo: InnerExecute, Message="TypeError: Cannot read property \\'replace\\' of null\\r\\n at _toJSONEscapedString (Script Document [21]:37:14)\\r\\n at Global code (.executeScript () Script Document [21]:275:16)\\r\\n at Global code (render Script Document [21]:356:1)\\r\\n at Global code (.executeScript () Script Document [20]:703:22)\\r\\n at Global code (partial Script Document [20]:767:1)\\r\\n at Global code (.executeScript () Script Document [19]:109:16)\\r\\n at Global code (partial Script Document [19]:180:1)\\r\\n at Global code (.executeScript () Script Document [4]:233:16)\\r\\n at Global code (Script Document [4]:348:1)", Data= [ ] , InnerException=JavaScriptException { JavaScriptStackTrace=" at _toJSONEscapedString (str) Script Document [21]:37:14\\r\\n at .executeScript () Script Document [21]:275:16\\r\\n at render Script Document [21]:356:1\\r\\n at .executeScript () Script Document [20]:703:22\\r\\n at partial Script Document [20]:767:1\\r\\n at .executeScript () Script Document [19]:109:16\\r\\n at partial Script Document [19]:180:1\\r\\n at .executeScript () Script Document [4]:233:16\\r\\n at Script Document [4]:348:1", Location=SourceLocation, Error=JsError, TargetSite=RuntimeMethodInfo: ScriptEvaluation, Message="Cannot read property \\'replace\\' of null", Data= [ ] , InnerException=JavaScriptErrorWrapperException, HelpLink=null, Source="Jint", HResult=-2146233088, StackTrace=" at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord, ParserOptions parserOptions)\\r\\n at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback)\\r\\n at JavaScriptEngineSwitcher.Jint.JintJsEngine.InnerExecute(String code, String documentName)" }, HelpLink=null, Source="JavaScriptEngineSwitcher.Jint", HResult=-2146233088, StackTrace=" at JavaScriptEngineSwitcher.Jint.JintJsEngine.InnerExecute(String code, String documentName)\\r\\n at ZetaProducer.JavaScriptEngineRunner.JsRunner.Execute(String script) in C:\\P\\zp-uk-zp-16.8-net-9-latest\\ZetaProducerMain\\Source\\Core\\JavaScriptEngineRunner\\JsRunner.cs:line 45" }, HelpLink=null, Source="", HResult=-2146233088, StackTrace=" at ZetaProducer.JavaScriptEngineRunner.JsRunner.Execute(String script) in C:\\P\\zp-uk-zp-16.8-net-9-latest\\ZetaProducerMain\\Source\\Core\\JavaScriptEngineRunner\\JsRunner.cs:line 54\\r\\n at ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Engine.RenderingInterpreterHelper.GuardEngineRun(IJsRunner engine, String scriptToExecute, RenderingContext renderingContext, String runString) in C:\\P\\zp-uk-zp-16.8-net-9-latest\\ZetaProducerMain\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Scripting\\Engine\\RenderingInterpreterHelper.cs:line 170" }, HelpLink=null, Source="function SE638756623440482632() {}\\r\\n\\r\\n\\r\\nSE638756623440482632.prototype.executeScript = function(){\\r\\n// Start source file: \\'C:\\Users\\samso\\AppData\\Local\\Zeta Producer 16\\packaging\\widgets\\veranstaltungsuebersicht\\calendar.html\\'.\\r\\n\\r\\n\\r\\nvar selectext = system.htmlEncode(article.value(\\"selecttext\\"));\\r\\nvar venuelabel = system.htmlEncode(article.value(\\"venuelabel\\"));\\r\\nvar genrelabel = system.htmlEncode(article.value(\\"genrelabel\\"));\\r\\nvar sortorder = article.value(\\"sortorder\\", \\"asc\\");\\r\\nvar articleText = article.value(\\"Text\\");\\r\\nif ( articleText !== \\"\\" && articleText.indexOf(\\"

\\") == -1 ){\\r\\n\\tarticleText = \\"

\\" + articleText + \\"

\\";\\r\\n}\\r\\nvar maxevents = article.value(\\"maxevents\\", \\"0\\");\\r\\n\\r\\n// polyfill for JSON.stringify()\\r\\n// https://gist.github.com/uupaa/5562297\\r\\nfunction _toJSONEscapedString(str) { // @arg String:\\r\\n // @ret String:\\r\\n // @inner: to JSON escaped string\\r\\n\\tif (typeof(str)===\\'undefined\\') str = \\"\\";\\r\\n\\tif ( str == \\"\\"){\\r\\n\\t\\treturn \\"\\";\\r\\n\\t}\\r\\n\\telse{\\r\\n\\t\\tvar JSON_ESCAPE = {\\r\\n\\t\\t\\t\\'\\b\\': \\'\\\\b\\', // backspace U+0008\\r\\n\\t\\t\\t\\'\\t\\': \\'\\\\t\\', // tab U+0009\\r\\n\\t\\t\\t\\'\\n\\': \\'\\\\n\\', // line feed U+000A\\r\\n\\t\\t\\t\\'\\f\\': \\'\\\\f\\', // form feed U+000C\\r\\n\\t\\t\\t\\'\\r\\': \\'\\\\r\\', // carriage return U+000D\\r\\n\\t\\t\\t\\'\\"\\': \\'\\\\\\"\\', // quotation mark U+0022\\r\\n\\t\\t\\t\\'\\\\\\': \\'\\\\\\\\\\' // reverse solidus U+005C\\r\\n\\t\\t};\\r\\n\\t\\treturn str.replace(/(?:[\\b\\t\\n\\f\\r\\\\"]|\\\\)/g, function(_) { return JSON_ESCAPE[_]; }).replace(/(?:[\\x00-\\x1f])/g, function(_) { return \\"\\\\u00\\" + (\\"0\\" + _.charCodeAt(0).toString(16)).slice(-2); });\\r\\n }\\r\\n}\\r\\n\\r\\n// polyfill for toISOString() to convert a JS Date to RFC 3339 \\r\\nfunction ISODateString(d){\\r\\n\\tfunction pad(n){return n<10 ? \\'0\\'+n : n}\\r\\n\\t\\r\\n\\treturn d.getUTCFullYear()+\\'-\\'\\r\\n + pad(d.getUTCMonth()+1)+\\'-\\'\\r\\n + pad(d.getUTCDate())+\\'T\\'\\r\\n + pad(d.getUTCHours())+\\':\\'\\r\\n + pad(d.getUTCMinutes())+\\':\\'\\r\\n + pad(d.getUTCSeconds())+\\'Z\\'\\r\\n}\\r\\n\\r\\nfunction isoDate(d){\\r\\n\\treturn d.substr(6,4) + \\"-\\" + d.substr(3,2) + \\"-\\" + d.substr(0,2)\\r\\n}\\r\\n\\r\\nvar numMonths = article.value(\\"num-months\\", \\"3\\");\\r\\nif ( isNaN(parseInt(numMonths)) || parseInt(numMonths) == 0 ){\\r\\n\\tnumMonths = \\"3\\";\\r\\n}\\r\\n\\r\\nvar textcolorfree = article.value(\\"textcolorfree\\", \\"inherit\\");\\r\\nif ( textcolorfree == \\"transparent\\" ){\\r\\n\\ttextcolorfree = \\"inherit\\";\\r\\n}\\r\\nvar bgcolorfree = article.value(\\"bgcolorfree\\", \\"transparent\\");\\r\\nvar textcolorbooked = article.value(\\"textcolorbooked\\", \\"inherit\\");\\r\\nif ( textcolorbooked == \\"transparent\\" || textcolorbooked == \\"\\" ){\\r\\n\\ttextcolorbooked = \\"inherit\\";\\r\\n}\\r\\nvar linkcolorbooked = article.value(\\"linkcolorbooked\\", \\"inherit\\");\\r\\nif ( linkcolorbooked == \\"transparent\\" || linkcolorbooked == \\"\\" ){\\r\\n\\tlinkcolorbooked = \\"inherit\\";\\r\\n}\\r\\nvar bgcolorbooked = article.value(\\"bgcolorbooked\\", \\"#E6E6E6\\");\\r\\nvar labelbooked = article.value(\\"labelbooked\\", \\"Veranstaltung\\");\\r\\nif ( labelbooked == \\"\\" ){\\r\\n\\tlabelbooked = \\"Veranstaltung\\";\\r\\n}\\r\\nvar labelfree = article.value(\\"labelfree\\", \\"Spielfrei\\");\\r\\nif ( labelfree == \\"\\" ){\\r\\n\\tlabelfree = \\"Spielfrei\\";\\r\\n}\\r\\n\\r\\nvar styleSel = \\'.eventCalendar.calendar#ec\\' + article.id;\\r\\nvar thisStyles = \\'\\';\\r\\nthisStyles += styleSel + \\' .zpCalendarTableLegend span.legfree{background-color:\\' + bgcolorfree + \\'}\\n\\';\\r\\nthisStyles += styleSel + \\' .zpCalendarTableLegend span.legbooked{background-color:\\' + bgcolorbooked + \\'}\\n\\';\\r\\nthisStyles += styleSel + \\' td.available{color: \\' + textcolorfree + \\'; background-color: \\' + bgcolorfree + \\';}\\n\\'\\r\\nthisStyles += styleSel + \\' td.withevent{color: \\' + textcolorbooked + \\'; background-color: \\' + bgcolorbooked + \\';}\\n\\'\\r\\nthisStyles += styleSel + \\' .event.overlay:not(.below){color: \\' + textcolorbooked + \\'; background-color: \\' + bgcolorbooked + \\';}\\n\\'\\r\\nif ( linkcolorbooked !== \\"\\" ){\\r\\n\\tthisStyles += styleSel + \\' td.withevent a{color: \\' + linkcolorbooked + \\';}\\n\\'\\r\\n\\tthisStyles += styleSel + \\' .event.overlay:not(.below) a, \\' + styleSel + \\' .event.overlay .name {color: \\' + linkcolorbooked + \\'};\\n\\'\\r\\n}\\r\\n\\r\\nsystem.addHtmlHeadElement(\\"\\n\\" + thisStyles + \\"\\n\\");\\r\\n\\r\\n\\r\\n\\r\\n context.write(\\"\\r\\n\\r\\n\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-begin.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t
\\r\\n\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-headline.html\\") );\\r\\n\\r\\n context.write(\\"\\t\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( articleText );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\r\\n\\t\\t
\\r\\n\\r\\n\\t\\t\\");\\r\\n\\r\\n if ( !article.value(\\"hide_legend\\", false) ){ \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t

\\r\\n\\t\\t\\t = \\");\\r\\n\\r\\ncontext.write( system.htmlEncode(labelfree) );\\r\\n\\r\\n context.write(\\" = \\");\\r\\n\\r\\ncontext.write( system.htmlEncode(labelbooked) );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t

\\r\\n\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t
\\r\\n\\t\\t\\t

\\r\\n\\t\\t\\t

\\r\\n\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t\\");\\r\\n\\r\\ncontext.write( venuelabel );\\r\\n\\r\\n context.write(\\":
\\r\\n\\t\\t\\t\\t\\t\\");\\r\\n\\r\\ncontext.write( genrelabel );\\r\\n\\r\\n context.write(\\": \\r\\n\\t\\t\\t

\\r\\n\\t\\r\\n\\t\\t\\t\\\\"\\\\"\\r\\n\\t\\t\\t

\\r\\n\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t✕ \\");\\r\\n\\r\\ncontext.write(page.attribute(\\"eventCalendar_datepicker_close_text\\", \\"Schließen\\"));\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t
\\r\\n\\r\\n \\r\\n\\r\\n\\t\\t\\r\\n\\t
\\r\\n\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-end.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\r\\n\\r\\n\\");\\r\\n// End source file: \\'C:\\Users\\samso\\AppData\\Local\\Zeta Producer 16\\packaging\\widgets\\veranstaltungsuebersicht\\calendar.html\\'.\\r\\n};\\r\\n\\r\\n/* Shortcuts. */\\r\\narticle = context.article;\\r\\npage = context.page;\\r\\nprojectFolder = context.projectFolder;\\r\\nproject = context.project;\\r\\nsystem = context.system;\\r\\nshop = context.shop;\\r\\n\\r\\n\\r\\nnew SE638756623440482632().executeScript();\\r\\n", HResult=-2146233088, StackTrace=" at ZetaProducer.JavaScriptEngineRunner.Implementations.JavaScriptEngineSwitcher.JsesEngineJintWrapper.ThrowHostException(Exception exception) in C:\\P\\zp-uk-zp-16.8-net-9-latest\\ZetaProducerMain\\Source\\Core\\JavaScriptEngineRunner\\Implementations\\JavaScriptEngineSwitcher\\JsesEngineJintWrapper.cs:line 117\\r\\n at ZetaProducer.JavaScriptEngineRunner.JsRunner.ThrowHostException(Exception exception) in C:\\P\\zp-uk-zp-16.8-net-9-latest\\ZetaProducerMain\\Source\\Core\\JavaScriptEngineRunner\\JsRunner.cs:line 61\\r\\n at ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Engine.RenderingInterpreterHelper.GuardEngineRun(IJsRunner engine, String scriptToExecute, RenderingContext renderingContext, String runString) in C:\\P\\zp-uk-zp-16.8-net-9-latest\\ZetaProducerMain\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Scripting\\Engine\\RenderingInterpreterHelper.cs:line 215\\r\\n at ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Engine.RenderingInterpreter.doRun(RenderingContext renderingContext, String runString) in C:\\P\\zp-uk-zp-16.8-net-9-latest\\ZetaProducerMain\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Scripting\\Engine\\RenderingInterpreter.cs:line 52\\r\\n at ZetaProducer.RuntimeBusinessLogic.Rendering.Macros.RenderingScriptingMacrosNew.Process(String textToProcess) in C:\\P\\zp-uk-zp-16.8-net-9-latest\\ZetaProducerMain\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Macros\\RenderingScriptingMacrosNew.cs:line 17\\r\\n at ZetaProducer.RuntimeBusinessLogic.Rendering.Core.RenderingDispatcher.doProcess(String textToProcess) in C:\\P\\zp-uk-zp-16.8-net-9-latest\\ZetaProducerMain\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Core\\RenderingDispatcher.cs:line 42\\r\\n at ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Dom.WebArticleScriptObject.render(Object makeAllRenderedUrlsAbsolute) in C:\\P\\zp-uk-zp-16.8-net-9-latest\\ZetaProducerMain\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Scripting\\Dom\\WebArticleScriptObject.cs:line 259\\r\\n at InvokeStub_WebArticleScriptObject.render(Object, Span`1)\\r\\n at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)\\r\\n--- End of stack trace from previous location ---\\r\\n at Jint.Runtime.ExceptionHelper.ThrowMeaningfulException(Engine engine, TargetInvocationException exception)\\r\\n at Jint.Runtime.Interop.MethodInfoFunction.Call(JsValue thisObject, JsValue[] jsArguments)\\r\\n at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context)\\r\\n at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue(EvaluationContext context)\\r\\n at Jint.Runtime.Interpreter.Expressions.ExpressionCache.BuildArguments(EvaluationContext context, JsValue[] targetArray)\\r\\n at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context)\\r\\n at Jint.Runtime.Interpreter.Statements.JintExpressionStatement.ExecuteInternal(EvaluationContext context)\\r\\n at Jint.Runtime.Interpreter.Statements.JintBlockStatement.ExecuteSingle(EvaluationContext context)\\r\\n at Jint.Runtime.Interpreter.Statements.JintBlockStatement.ExecuteBlock(EvaluationContext context)\\r\\n at Jint.Runtime.Interpreter.Statements.JintIfStatement.ExecuteInternal(EvaluationContext context)\\r\\n at Jint.Runtime.Interpreter.Statements.JintBlockStatement.ExecuteBlock(EvaluationContext context)\\r\\n at Jint.Runtime.Interpreter.Statements.JintForStatement.ForBodyEvaluation(EvaluationContext context)\\r\\n at Jint.Runtime.Interpreter.Statements.JintForStatement.ExecuteInternal(EvaluationContext context)\\r\\n at Jint.Runtime.Interpreter.Statements.JintBlockStatement.ExecuteBlock(EvaluationContext context)\\r\\n at Jint.Runtime.Interpreter.Statements.JintForStatement.ForBodyEvaluation(EvaluationContext context)\\r\\n at Jint.Runtime.Interpreter.Statements.JintForStatement.ExecuteInternal(EvaluationContext context)\\r\\n at Jint.Runtime.Interpreter.Statements.JintBlockStatement.ExecuteBlock(EvaluationContext context)\\r\\n at Jint.Runtime.Interpreter.Statements.JintForStatement.ForBodyEvaluation(EvaluationContext context)\\r\\n at Jint.Runtime.Interpreter.Statements.JintForStatement.ExecuteInternal(EvaluationContext context)\\r\\n at Jint.Runtime.Interpreter.Statements.JintBlockStatement.ExecuteBlock(EvaluationContext context)\\r\\n at Jint.Runtime.Interpreter.Statements.JintIfStatement.ExecuteInternal(EvaluationContext context)\\r\\n at Jint.Native.Function.ScriptFunction.Call(JsValue thisObject, JsValue[] arguments)\\r\\n at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context)\\r\\n at Jint.Runtime.Interpreter.Statements.JintExpressionStatement.ExecuteInternal(EvaluationContext context)\\r\\n at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord, ParserOptions parserOptions)\\r\\n at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback)\\r\\n at JavaScriptEngineSwitcher.Jint.JintJsEngine.InnerExecute(String code, String documentName)\\r\\n at ZetaProducer.JavaScriptEngineRunner.JsRunner.Execute(String script) in C:\\P\\zp-uk-zp-16.8-net-9-latest\\ZetaProducerMain\\Source\\Core\\JavaScriptEngineRunner\\JsRunner.cs:line 45" } -->TypeError: Cannot read property 'replace' of null at _toJSONEscapedString (Script Document [21]:37:14) at Global code (.executeScript () Script Document [21]:275:16) at Global code (render Script Document [21]:356:1) at Global code (.executeScript () Script Document [20]:703:22) at Global code (partial Script Document [20]:767:1) at Global code (.executeScript () Script Document [19]:109:16) at Global code (partial Script Document [19]:180:1) at Global code (.executeScript () Script Document [4]:233:16) at Global code (Script Document [4]:348:1)--> TypeError: Cannot read property 'replace' of null at _toJSONEscapedString (Script Document [21]:37:14) at Global code (.executeScript () Script Document [21]:275:16) at Global code (render Script Document [21]:356:1) at Global code (.executeScript () Script Document [20]:703:22) at Global code (partial Script Document [20]:767:1) at Global code (.executeScript () Script Document [19]:109:16) at Global code (partial Script Document [19]:180:1) at Global code (.executeScript () Script Document [4]:233:16) at Global code (Script Document [4]:348:1)--> Cannot read property 'replace' of null--> Cannot read property 'replace' of null ZetaProducer.JavaScriptEngineRunner.JsRunnerException ----------------- TypeError: Cannot read property 'replace' of null at _toJSONEscapedString (Script Document [21]:37:14) at Global code (.executeScript () Script Document [21]:275:16) at Global code (render Script Document [21]:356:1) at Global code (.executeScript () Script Document [20]:703:22) at Global code (partial Script Document [20]:767:1) at Global code (.executeScript () Script Document [19]:109:16) at Global code (partial Script Document [19]:180:1) at Global code (.executeScript () Script Document [4]:233:16) at Global code (Script Document [4]:348:1) ----------------- at ZetaProducer.JavaScriptEngineRunner.JsRunner.Execute(String script) in C:\P\zp-uk-zp-16.8-net-9-latest\ZetaProducerMain\Source\Core\JavaScriptEngineRunner\JsRunner.cs:line 54 at ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Engine.RenderingInterpreterHelper.GuardEngineRun(IJsRunner engine, String scriptToExecute, RenderingContext renderingContext, String runString) in C:\P\zp-uk-zp-16.8-net-9-latest\ZetaProducerMain\Source\Core\RuntimeBusinessLogic\Rendering\Scripting\Engine\RenderingInterpreterHelper.cs:line 170 JsRunnerException { Description="Cannot read property \\'replace\\' of null", LineNumber=37, ColumnNumber=14, SourceLine="", FullSourceCode="JavaScriptEngineSwitcher.Jint", WasCanceled=False, TargetSite=RuntimeMethodInfo: Execute, Message="TypeError: Cannot read property \\'replace\\' of null\\r\\n at _toJSONEscapedString (Script Document [21]:37:14)\\r\\n at Global code (.executeScript () Script Document [21]:275:16)\\r\\n at Global code (render Script Document [21]:356:1)\\r\\n at Global code (.executeScript () Script Document [20]:703:22)\\r\\n at Global code (partial Script Document [20]:767:1)\\r\\n at Global code (.executeScript () Script Document [19]:109:16)\\r\\n at Global code (partial Script Document [19]:180:1)\\r\\n at Global code (.executeScript () Script Document [4]:233:16)\\r\\n at Global code (Script Document [4]:348:1)", Data= [ ] , InnerException=JsRuntimeException { CallStack=" at _toJSONEscapedString (Script Document [21]:37:14)\\r\\n at Global code (.executeScript () Script Document [21]:275:16)\\r\\n at Global code (render Script Document [21]:356:1)\\r\\n at Global code (.executeScript () Script Document [20]:703:22)\\r\\n at Global code (partial Script Document [20]:767:1)\\r\\n at Global code (.executeScript () Script Document [19]:109:16)\\r\\n at Global code (partial Script Document [19]:180:1)\\r\\n at Global code (.executeScript () Script Document [4]:233:16)\\r\\n at Global code (Script Document [4]:348:1)", Type="TypeError", DocumentName="Script Document [21]", LineNumber=37, ColumnNumber=14, SourceFragment="", EngineName="JintJsEngine", EngineVersion="4.2.0", Category="Runtime error", Description="Cannot read property \\'replace\\' of null", TargetSite=RuntimeMethodInfo: InnerExecute, Message="TypeError: Cannot read property \\'replace\\' of null\\r\\n at _toJSONEscapedString (Script Document [21]:37:14)\\r\\n at Global code (.executeScript () Script Document [21]:275:16)\\r\\n at Global code (render Script Document [21]:356:1)\\r\\n at Global code (.executeScript () Script Document [20]:703:22)\\r\\n at Global code (partial Script Document [20]:767:1)\\r\\n at Global code (.executeScript () Script Document [19]:109:16)\\r\\n at Global code (partial Script Document [19]:180:1)\\r\\n at Global code (.executeScript () Script Document [4]:233:16)\\r\\n at Global code (Script Document [4]:348:1)", Data= [ ] , InnerException=JavaScriptException { JavaScriptStackTrace=" at _toJSONEscapedString (str) Script Document [21]:37:14\\r\\n at .executeScript () Script Document [21]:275:16\\r\\n at render Script Document [21]:356:1\\r\\n at .executeScript () Script Document [20]:703:22\\r\\n at partial Script Document [20]:767:1\\r\\n at .executeScript () Script Document [19]:109:16\\r\\n at partial Script Document [19]:180:1\\r\\n at .executeScript () Script Document [4]:233:16\\r\\n at Script Document [4]:348:1", Location=SourceLocation { }, Error=JsError { Engine=Engine, Prototype=ErrorPrototype, Extensible=True, Type=Object }, TargetSite=RuntimeMethodInfo: ScriptEvaluation, Message="Cannot read property \\'replace\\' of null", Data= [ ] , InnerException=JavaScriptErrorWrapperException { Error=JsError, Location=SourceLocation, StackTrace=" at _toJSONEscapedString (str) Script Document [21]:37:14\\r\\n at .executeScript () Script Document [21]:275:16\\r\\n at render Script Document [21]:356:1\\r\\n at .executeScript () Script Document [20]:703:22\\r\\n at partial Script Document [20]:767:1\\r\\n at .executeScript () Script Document [19]:109:16\\r\\n at partial Script Document [19]:180:1\\r\\n at .executeScript () Script Document [4]:233:16\\r\\n at Script Document [4]:348:1", TargetSite=null, Message="Cannot read property \\'replace\\' of null", Data= [ ] , InnerException=null, HelpLink=null, Source=null, HResult=-2146233088 }, HelpLink=null, Source="Jint", HResult=-2146233088, StackTrace=" at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord, ParserOptions parserOptions)\\r\\n at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback)\\r\\n at JavaScriptEngineSwitcher.Jint.JintJsEngine.InnerExecute(String code, String documentName)" }, HelpLink=null, Source="JavaScriptEngineSwitcher.Jint", HResult=-2146233088, StackTrace=" at JavaScriptEngineSwitcher.Jint.JintJsEngine.InnerExecute(String code, String documentName)\\r\\n at ZetaProducer.JavaScriptEngineRunner.JsRunner.Execute(String script) in C:\\P\\zp-uk-zp-16.8-net-9-latest\\ZetaProducerMain\\Source\\Core\\JavaScriptEngineRunner\\JsRunner.cs:line 45" }, HelpLink=null, Source="", HResult=-2146233088, StackTrace=" at ZetaProducer.JavaScriptEngineRunner.JsRunner.Execute(String script) in C:\\P\\zp-uk-zp-16.8-net-9-latest\\ZetaProducerMain\\Source\\Core\\JavaScriptEngineRunner\\JsRunner.cs:line 54\\r\\n at ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Engine.RenderingInterpreterHelper.GuardEngineRun(IJsRunner engine, String scriptToExecute, RenderingContext renderingContext, String runString) in C:\\P\\zp-uk-zp-16.8-net-9-latest\\ZetaProducerMain\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Scripting\\Engine\\RenderingInterpreterHelper.cs:line 170" } Ignoring inner exception because of previous OutOfMemoryException. See https://stackoverflow.com/a/25010668/107625 JavaScriptEngineSwitcher.Core.JsRuntimeException ----------------- TypeError: Cannot read property 'replace' of null at _toJSONEscapedString (Script Document [21]:37:14) at Global code (.executeScript () Script Document [21]:275:16) at Global code (render Script Document [21]:356:1) at Global code (.executeScript () Script Document [20]:703:22) at Global code (partial Script Document [20]:767:1) at Global code (.executeScript () Script Document [19]:109:16) at Global code (partial Script Document [19]:180:1) at Global code (.executeScript () Script Document [4]:233:16) at Global code (Script Document [4]:348:1) ----------------- at JavaScriptEngineSwitcher.Jint.JintJsEngine.InnerExecute(String code, String documentName) at ZetaProducer.JavaScriptEngineRunner.JsRunner.Execute(String script) in C:\P\zp-uk-zp-16.8-net-9-latest\ZetaProducerMain\Source\Core\JavaScriptEngineRunner\JsRunner.cs:line 45 JsRuntimeException { CallStack=" at _toJSONEscapedString (Script Document [21]:37:14)\\r\\n at Global code (.executeScript () Script Document [21]:275:16)\\r\\n at Global code (render Script Document [21]:356:1)\\r\\n at Global code (.executeScript () Script Document [20]:703:22)\\r\\n at Global code (partial Script Document [20]:767:1)\\r\\n at Global code (.executeScript () Script Document [19]:109:16)\\r\\n at Global code (partial Script Document [19]:180:1)\\r\\n at Global code (.executeScript () Script Document [4]:233:16)\\r\\n at Global code (Script Document [4]:348:1)", Type="TypeError", DocumentName="Script Document [21]", LineNumber=37, ColumnNumber=14, SourceFragment="", EngineName="JintJsEngine", EngineVersion="4.2.0", Category="Runtime error", Description="Cannot read property \\'replace\\' of null", TargetSite=RuntimeMethodInfo: InnerExecute, Message="TypeError: Cannot read property \\'replace\\' of null\\r\\n at _toJSONEscapedString (Script Document [21]:37:14)\\r\\n at Global code (.executeScript () Script Document [21]:275:16)\\r\\n at Global code (render Script Document [21]:356:1)\\r\\n at Global code (.executeScript () Script Document [20]:703:22)\\r\\n at Global code (partial Script Document [20]:767:1)\\r\\n at Global code (.executeScript () Script Document [19]:109:16)\\r\\n at Global code (partial Script Document [19]:180:1)\\r\\n at Global code (.executeScript () Script Document [4]:233:16)\\r\\n at Global code (Script Document [4]:348:1)", Data= [ ] , InnerException=JavaScriptException { JavaScriptStackTrace=" at _toJSONEscapedString (str) Script Document [21]:37:14\\r\\n at .executeScript () Script Document [21]:275:16\\r\\n at render Script Document [21]:356:1\\r\\n at .executeScript () Script Document [20]:703:22\\r\\n at partial Script Document [20]:767:1\\r\\n at .executeScript () Script Document [19]:109:16\\r\\n at partial Script Document [19]:180:1\\r\\n at .executeScript () Script Document [4]:233:16\\r\\n at Script Document [4]:348:1", Location=SourceLocation { }, Error=JsError { Engine=Engine { Advanced=AdvancedOperations, Constraints=ConstraintOperations, TypeConverter=DefaultTypeConverter, Intrinsics=Intrinsics, Global=GlobalObject, Debugger=DebugHandler, Modules=ModuleOperations }, Prototype=ErrorPrototype { Engine=Engine, Prototype=ErrorPrototype, Extensible=True, Type=Object }, Extensible=True, Type=Object }, TargetSite=RuntimeMethodInfo: ScriptEvaluation, Message="Cannot read property \\'replace\\' of null", Data= [ ] , InnerException=JavaScriptErrorWrapperException { Error=JsError { Engine=Engine, Prototype=ErrorPrototype, Extensible=True, Type=Object }, Location=SourceLocation { }, StackTrace=" at _toJSONEscapedString (str) Script Document [21]:37:14\\r\\n at .executeScript () Script Document [21]:275:16\\r\\n at render Script Document [21]:356:1\\r\\n at .executeScript () Script Document [20]:703:22\\r\\n at partial Script Document [20]:767:1\\r\\n at .executeScript () Script Document [19]:109:16\\r\\n at partial Script Document [19]:180:1\\r\\n at .executeScript () Script Document [4]:233:16\\r\\n at Script Document [4]:348:1", TargetSite=null, Message="Cannot read property \\'replace\\' of null", Data= [ ] , InnerException=null, HelpLink=null, Source=null, HResult=-2146233088 }, HelpLink=null, Source="Jint", HResult=-2146233088, StackTrace=" at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord, ParserOptions parserOptions)\\r\\n at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback)\\r\\n at JavaScriptEngineSwitcher.Jint.JintJsEngine.InnerExecute(String code, String documentName)" }, HelpLink=null, Source="JavaScriptEngineSwitcher.Jint", HResult=-2146233088, StackTrace=" at JavaScriptEngineSwitcher.Jint.JintJsEngine.InnerExecute(String code, String documentName)\\r\\n at ZetaProducer.JavaScriptEngineRunner.JsRunner.Execute(String script) in C:\\P\\zp-uk-zp-16.8-net-9-latest\\ZetaProducerMain\\Source\\Core\\JavaScriptEngineRunner\\JsRunner.cs:line 45" } Ignoring inner exception because of previous OutOfMemoryException. See https://stackoverflow.com/a/25010668/107625 Jint.Runtime.JavaScriptException ----------------- Cannot read property 'replace' of null ----------------- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord, ParserOptions parserOptions) at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) at JavaScriptEngineSwitcher.Jint.JintJsEngine.InnerExecute(String code, String documentName) JavaScriptException { JavaScriptStackTrace=" at _toJSONEscapedString (str) Script Document [21]:37:14\\r\\n at .executeScript () Script Document [21]:275:16\\r\\n at render Script Document [21]:356:1\\r\\n at .executeScript () Script Document [20]:703:22\\r\\n at partial Script Document [20]:767:1\\r\\n at .executeScript () Script Document [19]:109:16\\r\\n at partial Script Document [19]:180:1\\r\\n at .executeScript () Script Document [4]:233:16\\r\\n at Script Document [4]:348:1", Location=SourceLocation { }, Error=JsError { Engine=Engine { Advanced=AdvancedOperations { StackTrace=" at Script Document [21]:37:10" }, Constraints=ConstraintOperations { }, TypeConverter=DefaultTypeConverter { }, Intrinsics=Intrinsics { Object=ObjectConstructor, Function=FunctionConstructor, Array=ArrayConstructor, ArrayBuffer=ArrayBufferConstructor, Int8Array=Int8ArrayConstructor, Uint8Array=Uint8ArrayConstructor, Uint8ClampedArray=Uint8ClampedArrayConstructor, Int16Array=Int16ArrayConstructor, Uint16Array=Uint16ArrayConstructor, Int32Array=Int32ArrayConstructor, Uint32Array=Uint32ArrayConstructor, BigInt64Array=BigInt64ArrayConstructor, BigUint64Array=BigUint64ArrayConstructor, Float16Array=Float16ArrayConstructor, Float32Array=Float32ArrayConstructor, Float64Array=Float64ArrayConstructor, Map=MapConstructor, Set=SetConstructor, RegExp=RegExpConstructor, ShadowRealm=ShadowRealmConstructor, Eval=EvalFunction, Error=ErrorConstructor, TypeError=ErrorConstructor }, Global=GlobalObject { , Prototype=ObjectPrototype, Extensible=True, Type=Object }, Debugger=DebugHandler { CurrentLocation=null, BreakPoints=BreakPointCollection }, Modules=ModuleOperations { } }, Prototype=ErrorPrototype { Engine=Engine { Advanced=AdvancedOperations, Constraints=ConstraintOperations, TypeConverter=DefaultTypeConverter, Intrinsics=Intrinsics, Global=GlobalObject, Debugger=DebugHandler, Modules=ModuleOperations }, Prototype=ErrorPrototype { Engine=Engine, Prototype=ObjectPrototype, Extensible=True, Type=Object }, Extensible=True, Type=Object }, Extensible=True, Type=Object }, TargetSite=RuntimeMethodInfo: ScriptEvaluation, Message="Cannot read property \\'replace\\' of null", Data= [ ] , InnerException=JavaScriptErrorWrapperException { Error=JsError { Engine=Engine { Advanced=AdvancedOperations, Constraints=ConstraintOperations, TypeConverter=DefaultTypeConverter, Intrinsics=Intrinsics, Global=GlobalObject, Debugger=DebugHandler, Modules=ModuleOperations }, Prototype=ErrorPrototype { Engine=Engine, Prototype=ErrorPrototype, Extensible=True, Type=Object }, Extensible=True, Type=Object }, Location=SourceLocation { }, StackTrace=" at _toJSONEscapedString (str) Script Document [21]:37:14\\r\\n at .executeScript () Script Document [21]:275:16\\r\\n at render Script Document [21]:356:1\\r\\n at .executeScript () Script Document [20]:703:22\\r\\n at partial Script Document [20]:767:1\\r\\n at .executeScript () Script Document [19]:109:16\\r\\n at partial Script Document [19]:180:1\\r\\n at .executeScript () Script Document [4]:233:16\\r\\n at Script Document [4]:348:1", TargetSite=null, Message="Cannot read property \\'replace\\' of null", Data= [ ] , InnerException=null, HelpLink=null, Source=null, HResult=-2146233088 }, HelpLink=null, Source="Jint", HResult=-2146233088, StackTrace=" at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord, ParserOptions parserOptions)\\r\\n at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback)\\r\\n at JavaScriptEngineSwitcher.Jint.JintJsEngine.InnerExecute(String code, String documentName)" } Ignoring inner exception because of previous OutOfMemoryException. See https://stackoverflow.com/a/25010668/107625 Jint.Runtime.JavaScriptException+JavaScriptErrorWrapperException ----------------- Cannot read property 'replace' of null ----------------- at _toJSONEscapedString (str) Script Document [21]:37:14 at .executeScript () Script Document [21]:275:16 at render Script Document [21]:356:1 at .executeScript () Script Document [20]:703:22 at partial Script Document [20]:767:1 at .executeScript () Script Document [19]:109:16 at partial Script Document [19]:180:1 at .executeScript () Script Document [4]:233:16 at Script Document [4]:348:1 JavaScriptErrorWrapperException { Error=JsError { Engine=Engine { Advanced=AdvancedOperations { StackTrace=" at Script Document [21]:37:10" }, Constraints=ConstraintOperations { }, TypeConverter=DefaultTypeConverter { }, Intrinsics=Intrinsics { Object=ObjectConstructor, Function=FunctionConstructor, Array=ArrayConstructor, ArrayBuffer=ArrayBufferConstructor, Int8Array=Int8ArrayConstructor, Uint8Array=Uint8ArrayConstructor, Uint8ClampedArray=Uint8ClampedArrayConstructor, Int16Array=Int16ArrayConstructor, Uint16Array=Uint16ArrayConstructor, Int32Array=Int32ArrayConstructor, Uint32Array=Uint32ArrayConstructor, BigInt64Array=BigInt64ArrayConstructor, BigUint64Array=BigUint64ArrayConstructor, Float16Array=Float16ArrayConstructor, Float32Array=Float32ArrayConstructor, Float64Array=Float64ArrayConstructor, Map=MapConstructor, Set=SetConstructor, RegExp=RegExpConstructor, ShadowRealm=ShadowRealmConstructor, Eval=EvalFunction, Error=ErrorConstructor, TypeError=ErrorConstructor }, Global=GlobalObject { , Prototype=ObjectPrototype, Extensible=True, Type=Object }, Debugger=DebugHandler { CurrentLocation=null, BreakPoints=BreakPointCollection }, Modules=ModuleOperations { } }, Prototype=ErrorPrototype { Engine=Engine { Advanced=AdvancedOperations, Constraints=ConstraintOperations, TypeConverter=DefaultTypeConverter, Intrinsics=Intrinsics, Global=GlobalObject, Debugger=DebugHandler, Modules=ModuleOperations }, Prototype=ErrorPrototype { Engine=Engine, Prototype=ObjectPrototype, Extensible=True, Type=Object }, Extensible=True, Type=Object }, Extensible=True, Type=Object }, Location=SourceLocation { }, StackTrace=" at _toJSONEscapedString (str) Script Document [21]:37:14\\r\\n at .executeScript () Script Document [21]:275:16\\r\\n at render Script Document [21]:356:1\\r\\n at .executeScript () Script Document [20]:703:22\\r\\n at partial Script Document [20]:767:1\\r\\n at .executeScript () Script Document [19]:109:16\\r\\n at partial Script Document [19]:180:1\\r\\n at .executeScript () Script Document [4]:233:16\\r\\n at Script Document [4]:348:1", TargetSite=null, Message="Cannot read property \\'replace\\' of null", Data= [ ] , InnerException=null, HelpLink=null, Source=null, HResult=-2146233088 } Ignoring inner exception because of previous OutOfMemoryException. See https://stackoverflow.com/a/25010668/107625